core: canonicalize bare-user xattrs
authorColin Walters <walters@verbum.org>
Tue, 25 Feb 2025 19:14:19 +0000 (14:14 -0500)
committerColin Walters <walters@verbum.org>
Tue, 25 Feb 2025 19:58:35 +0000 (14:58 -0500)
commit37961d3d9ecec4e5b0efd9c2ca9ea81366c4367c
treefa643a00fd047d03598faa77b032cac1f5cb648a
parent0c55f6800625b1ea285a78929f78c59db54f121c
core: canonicalize bare-user xattrs

Previously we were erroring out if xattrs were provided in
non-canonical (e.g. unsorted) form all the way down to just
the bare-user path. But for archive repos and dirmeta we
canonicalized.

Canonicalize bare-user xattrs on both read and write consistently
instead of erroring.

Signed-off-by: Colin Walters <walters@verbum.org>
src/libostree/ostree-core-private.h
src/libostree/ostree-core.c
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo.c